VLCPlaylistAdd

 

Add a playlist of VLC Media Player objects.

 

void @VLCPlaylistAdd(string classname, string mrl, string options);

 

Parameters

string classname : Class name of the VLC Media Player object

string mrl : Set the address of the media you want to play

string options : Set options such as the amount of time (milliseconds) to store data in the buffer and the protocol format before starting playback

 

 MRL: Set the media address you want to play in the VLC Media Player object.

         ex1) http://www.example.com/stream.avi

         ex2) rtsp://@:1234                                          // RSTP streaming

         ex3) file:///C:/AutoBase/example.mp4        // Local file playback

         ex4) dshow://                                                  // Video devices (webcams, etc.)

Options: Set options such as the amount of time (milliseconds) to store data in the buffer before starting playback, and the protocol format

        ex1) 0                                         // If there is no option such as local file playback, enter 0.

        ex2) :rtsp-tcp                                // When using the RSTP protocol, it will load quickly when playing.

        ex3) :network-caching=1000           // Use network cache (milliseconds), and use buffers to improve image quality when the network is unstable. A video with a delay of 1 second will be played.

        ex4) :dshow-vdev=Microsoft˘ç LifeCam HD-3000 :dshow-adev=          // Video devices ( Microsoft ePECAM devices)

 

Return Value

None

 

Example1

@VLCAutoLoop("VLCPlayer1", 1);

@VLCPlaylistAdd("VLCPlayer1", "file:///C:/AutoBase/example1.mp4", 0);

@VLCPlaylistAdd("VLCPlayer1", "file:///C:/AutoBase/example2.mp4", 0);

@VLCPlaylistPlay("VLCPlayer1");

@VLCAudioVolume("VLCPlayer1", 0);

 

Description : Add two mp4 files to the playlist in the VLCPlayer1 object and play them. ( Repeat function ON, Volume 0)

 

Example2

@VLCPlaylistAdd("VLCPlayer1", "rtsp://192.168.xxx.xxx/live/cctv001.stream", ":rtsp-tcp :network-caching=1000");

@VLCPlaylistPlay("VLCPlayer1");

 

Description : Add the CCTV RTSP streaming address to the playlist of the VLCPlayer1 object and play it. (1 second delay in using network cache)

 

Example3

@VLCPlaylistAdd("VLCPlayer1", "dshow://", ":dshow-vdev=Microsoft˘ç LifeCam HD-3000 :dshow-adev=");

@VLCPlaylistPlay("VLCPlayer1");

 

Description : The VLCPlayer1 object plays the webcam screen connected to the PC. (:d show-vdev=[devicename])

 

Version Information

Supported Version: 10.3.6.17

 

Related Helps)

@VLCAudioMute()

@VLCAudioVolume()

@VLCAutoLoop()

@VLCPlaylistClear()

@VLCPlaylistPlay()

@VLCPlaylistStop()